<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <%@include file="/WEB-INF/pages/header.jsp"%>
    <style>
        #table_enterResult tr td{
            border:1px solid #000;
            height: 35px;
        }
    </style>
</head>
<body>
<div class="container" style="width: 80%;margin:0 auto;">
    <div style="width:90%;margin-top:10px;">
        <div class="pull-right" style="margin-bottom:15px;">
            <button type="button"  class="btn btn-success" onclick="reservationSave()">预约保存</button>
            <a id="back" onclick="javascript:history.back();" class="btn btn-warning">返回</a>
        </div>
    </div>
    <table id="table_enterResult" style="margin:0 auto;border:1px solid #ccc;width:900px;">
        <form id="instrForm" class="form-horizontal">
        <tr>
            <td style="width:100px;text-align:right;background: #ccc;">仪器名称:</td>
            <td colspan="3"  class="form-group">
                <div class="col-md-5" style="margin:10px 0;">
                    <select style="margin-left:15px;" name="instrId" id="select1" class="form-control">
                        <option value="-1">请选择</option>
                        <c:forEach items="${instrInfoList}" var="instr">
                            <option value="${instr.instrId}">${instr.instrName}</option>
                        </c:forEach>
                    </select>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width:100px;text-align:right;background: #ccc;">预约医师:</td>
            <td colspan="3"  class="form-group">
                <div class="col-md-5" style="margin:10px 0;">
                    <select style="margin-left:15px;" name="userId" class="form-control">
                        <option value="-1">请选择</option>
                        <c:forEach items="${userList}" var="user">
                            <option value="${user.userId}">${user.userName}</option>
                        </c:forEach>
                    </select>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width:100px;text-align:right;background: #ccc;">病历号:</td>
            <td colspan="3" class="form-group">
                <div class="col-md-4" style="margin:10px 0;">
                    <input type="hidden" name="caseNo" value="${caseNo}"/>
                    <span id="span">${caseNo}</span>
                </div>
            </td>
        </tr>
            <tr>
                <td style="width:100px;text-align:right;background: #ccc;">患者姓名:</td>
                <td colspan="3" class="form-group">
                    <div class="col-md-4" style="margin:10px 0;">
                        <input type="hidden" name="memberId" value="${memberId}"/>
                        <input type="hidden" name="caseId" value="${caseId}"/>
                        <span>${member.memberName}</span>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="width:100px;text-align:right;background: #ccc;">使用时间段:</td>
                <td colspan="3" class="form-group">
                    <div class="col-md-4" style="margin:10px 0;">
                        <input type="text" name="reservationInstrStartDate"  class="form-control" id="d412" onfocus="WdatePicker({long:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                    </div>
                    <div class="col-md-1" style="margin-top:20px;">至</div>
                    <div class="col-md-4" style="margin:10px 0;">
                        <input  type="text"  name="reservationInstrFinishDate" class="form-control" id="d413" onfocus="WdatePicker({long:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                    </div>
                </td>
            </tr>
        </form>
    </table>
</div>

<%@include file="/WEB-INF/pages/footer.jsp"%>
<script src="${ctx}/res/js/reservationInstroe.js"></script>
<script src="${ctx}/statics/My97DatePicker/WdatePicker.js"></script>
</body>
</html>
